package net.csdra.libraryborrowing.service.user;

import net.csdra.libraryborrowing.domain.user.UserBorrow;
import net.csdra.libraryborrowing.domain.user.UserBorrowRepository;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by add on 2017/10/17.
 */
public class UserBorrowComponentImpl implements UserBorrowComponent {
    @Autowired
    UserBorrowRepository userBorrowRepository;
    @Override
    public UserBorrow getUserBorrowByBookCopyId(String metaId, String bookCopyId) {
        return this.userBorrowRepository.findByMetaIdAndBookCopyId(metaId, bookCopyId);
    }
}
